/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.csource.manage.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 描述: 案源材料记录表 case_source_material_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年08月12日
 */
@Data
@Table(name = "csource.case_source_material_record")
public class CaseSourceMaterialRecord implements Serializable {
    /**
     * 主键id
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案源id
     */
    @Column(name = "case_source_id")
    private String caseSourceId;

    /**
     * 附件类型id（数据字典ATTACHMENT_TYPE）
     */
    @Column(name = "material_type_id")
    private String materialTypeId;

    /**
     * 材料地址
     */
    @Column(name = "material_url")
    private String materialUrl;

    /**
     * 上传人姓名
     */
    @Column(name = "upload_user_name")
    private String uploadUserName;

    /**
     * 上传人id
     */
    @Column(name = "upload_user_id")
    private String uploadUserId;

    /**
     * 上传时间
     */
    @Column(name = "upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime uploadTime;

    /**
     * 目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 是否删除； 1是 0否
     */
    @Column(name = "is_delete")
    private String isDelete;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;
    /**
     * 材料名称
     */
    @Column(name = "material_name")
    private String materialName;

    /**
     * 证据uid
     */
    @Column(name = "evidence_uid")
    private String evidenceUid;
    /**
     * 证据链接类型
     */
    @Column(name = "evidence_link_type")
    private String evidenceLinkType;
    /**
     * 证据类型编码(协同)
     */
    @Column(name = "evidence_code")
    private String evidenceCode;


    private static final long serialVersionUID = 1L;

}